package com.dc.aimc.auth.service;

import com.dc.aimc.auth.vo.LoginResult;
import com.dc.aimc.user.entity.User;
import org.springframework.security.core.authority.SimpleGrantedAuthority;

import java.util.List;

public interface AuthService {
    User getUserInfo(String username);
    List<SimpleGrantedAuthority> getAuthorities(Integer userId);
    LoginResult login(String username, String password);
    LoginResult appLogin(String appId, String appSignature, Long timestamp);
}
